/**
 * @author yuliang
 *
 */
package com.xuhai.libms.form;

import org.apache.struts.action.ActionForm;

public class BookTypeForm extends ActionForm {
	
	/**
	 * 
	 */
	private int id;
	private String typeName;
	private int p_id;

	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTypeName() {
		StringBuffer sb = new StringBuffer(); 
		for(int i=0;i<typeName.length();i++){
			if(typeName.charAt(i)=='#'){
				sb.append('+');
			}
			else{
				sb.append(typeName.charAt(i));
			}
		}
		return sb.toString();
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public int getP_id() {
		return p_id;
	}
	public void setP_id(int p_id) {
		this.p_id = p_id;
	}
}
